﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Imaging;

namespace Hugo
{
    public abstract class UIOption
    {
        public int ID { get; set; }
        public String Name { get; set; }
        public BitmapSource IconSource { get; set; }

        public UIOption(String name, BitmapSource iconSource)
            : this(name, iconSource, true) { }

        private static int lastID = 0;

        public UIOption(String name, BitmapSource iconSource, bool canTranslate)
        {
            this.ID = ++lastID;
            this.Name = canTranslate ? Translate.translate(name) : name;
            this.IconSource = iconSource;
        }

        public virtual System.Windows.Controls.Canvas getContent() { return null; }

        public abstract void wasSelected();

    }
}
